Auto merge of #3480 - alexcrichton:one-flaky-test, r=brson
authorbors <bors@rust-lang.org>
Sat, 31 Dec 2016 02:48:35 +0000 (02:48 +0000)
committerbors <bors@rust-lang.org>
Sat, 31 Dec 2016 02:48:35 +0000 (02:48 +0000)
commitc95b873605440ee0de6a1e3350f879685eac42c6
treec16c1e5c707320404ee84de47279119560b9e9bf
parent02eaab39039ac80cb978be867c2ce05efc508583
parentd7d5f0f2a9901059389d12221a6365303b4cbcbb
Auto merge of #3480 - alexcrichton:one-flaky-test, r=brson

Protect against spurious failure in ctrl_c test

A failure was witnessed in the Rust repository [1] which happened right after
this test and was a problem removing a directory. Local testing confirms that if
you kill Cargo then right afterwards it's very unlikely to be able to remove the
build directory, presumably because the child process is still getting torn down
in the background.

This commit fixes the ctrl_c test itself to wait for itself to release the bulid
directory, at which point the test has definitely passed.

[1]: https://ci.appveyor.com/project/rust-lang/rust/build/1.0.1331/job/xq4ogmglj7sllibw